package com.cn.entity;

import java.util.HashSet;
import java.util.Set;

/**
 * Rights entity. @author MyEclipse Persistence Tools
 */

public class Rights implements java.io.Serializable {

	// Fields

	private Integer id;
	private String rigtName;
	private Integer rightType;
	private String url;
	private Integer pid;
	private Set jobrights = new HashSet();

	// Constructors

	/** default constructor */
	public Rights() {
	}

	/** minimal constructor */
	public Rights(String rigtName) {
		this.rigtName = rigtName;
	}

	/** full constructor */
	public Rights(String rigtName, Integer rightType, String url, Integer pid, Set jobrights) {
		this.rigtName = rigtName;
		this.rightType = rightType;
		this.url = url;
		this.pid = pid;
		this.jobrights = jobrights;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getRigtName() {
		return this.rigtName;
	}

	public void setRigtName(String rigtName) {
		this.rigtName = rigtName;
	}

	public Integer getRightType() {
		return this.rightType;
	}

	public void setRightType(Integer rightType) {
		this.rightType = rightType;
	}

	public String getUrl() {
		return this.url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Integer getPid() {
		return this.pid;
	}

	public void setPid(Integer pid) {
		this.pid = pid;
	}

	public Set getJobrights() {
		return this.jobrights;
	}

	public void setJobrights(Set jobrights) {
		this.jobrights = jobrights;
	}

}